<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
    <tr><td colspan="6" class="t_bar">&nbsp;项目基本信息</td></tr>
	<tr>
		<td nowrap align="right" style="width:180px;" ><span class="color_red">*</span>项目名称：</td>
		<td nowrap colspan="5">
			<input id="zh_title" name="proposal/zh_title" label="项目名称" type="text" 
				class="input_css required maxlength:50"  style="width:665px;" maxlength="50" 
				value="<x:out select="$xmlData/data/proposal/zh_title" />" /> 
		</td>
	</tr>
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>申报日期：</td>
		<td nowrap colspan="2">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className="required date" label="申报日期"></cpt:date> 
		</td>
		<td nowrap align="right"><span class="color_red">*</span>项目实施地点：</td>
		<td nowrap colspan="2">
			<c:set var="impl_area_code"><x:out select="$xmlData/data/proposal/impl_area_code" /></c:set>
			<c:set var="impl_area">{'id':'${impl_area_code}','name':'<c:if test="${not empty impl_area_code}"></c:if><x:out select="$xmlData/data/proposal/impl_area_name" />'}</c:set>
			<c:set var="impl_area_params">{'grant_code':'<x:out select="$xmlData/data/proposal/sub_grant_code" />'}</c:set>
			<input name="proposal/impl_area_code" type="hidden" value="<x:out select="$xmlData/data/proposal/impl_area_code" />" />
			<input name="proposal/impl_area_name" type="hidden" value="<x:out select="$xmlData/data/proposal/impl_area_name" />" />
			<input id="impl_area_sqlParamVal" type="hidden" value="${impl_area_params}" />
			<cpt:treeAndComplete id="impl_area" topCheckbox="false"  name="impl_area" key="areaTree" onClick="initTreeValue"  value="${impl_area}" sqlParamVal="" width="20" checkable="true" label="项目实施地点" className="required" ></cpt:treeAndComplete>
	</tr>
	<tr>
		<c:set var="need_approve">
			<x:out select="$xmlData/data/proposal/need_approve" />
		</c:set>
		<c:if test="${empty need_approve }">
			<c:set var="need_approve">0</c:set>
		</c:if>
		<c:if test="${need_approve==1 }">
			<td nowrap align="right"><span class="color_red">*</span>推荐单位：</td>
			<td nowrap colspan="2"><c:set var="recomend_org_value">
					<x:out select="$xmlData/data/proposal/recomend_org_value" />
				</c:set> <input name="proposal/recomend_org_value" type="hidden"
				value="<x:out select="$xmlData/data/proposal/recomend_org_value" />"
				class="required " label="推荐单位" /> <input
				name="proposal/recomend_org_name" type="hidden"
				value="<x:out select="$xmlData/data/proposal/recomend_org_name" />" />
				<c:set var="sqOrgCode"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/></c:set>
			<cpt:select id="recomend_org" sqlParamVal="{currentorgcode:${sqOrgCode }}" key="recomend_org"
					onChange="initControlValue('recomend_org')"
					value="${recomend_org_value}"></cpt:select></td>
		</c:if>
		<td nowrap align="right"><span class="color_red">*</span>技术领域：</td>
		<td nowrap colspan="${5-need_approve*3}">
			<c:set var="applicant_subject_value"><x:out select="$xmlData/data/proposal/applicant_subject_value" /></c:set>
			<c:set var="appl_sub_params">{'grant_code':'<x:out select="$xmlData/data/proposal/grant_code" />','stat_year':'${statYear}'}</c:set>
			<input name="proposal/applicant_subject_value" type="hidden" value="<x:out select="$xmlData/data/proposal/applicant_subject_value" />" class="required " label="技术领域"/>
			<input name="proposal/applicant_subject_name" type="hidden" value="<x:out select="$xmlData/data/proposal/applicant_subject_name" />" />
			<cpt:select id="applicant_subject" key="applicant_subject" onChange="initControlValue('applicant_subject')" value="${applicant_subject_value}" sqlParamVal="${appl_sub_params}"></cpt:select> 
		</td>
	</tr>
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>开始日期：</td>
		<td nowrap colspan="2">
			<c:set var="start_date"><x:out select="$xmlData/data/proposal/start_date" /></c:set>
			<cpt:date id="start_date" name="proposal/start_date" value="${start_date}" className="required date dateCompare:end_date" label="项目开始日期" ></cpt:date> 
			
		</td>
		<td nowrap align="right"><span class="color_red">*</span>结束日期：</td>
		<td nowrap colspan="2">
			<c:set var="end_date"><x:out select="$xmlData/data/proposal/end_date" /></c:set>
			<cpt:date id="end_date" name="proposal/end_date" className="required date" label="项目结束日期"  value="${end_date}" ></cpt:date> 
		</td>
		
	</tr>
		
	<tr>
	    <td nowrap align="right"><span class="color_red">*</span>关键字：
	    <br>
	        （用分号分开，最多5个）
	    </td>
	    <td nowrap colspan="5"><input id="keyword" name="proposal/keyword" label="关键字"  type="text" required class="input_css required"  style="width:665px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/keyword" />" /> </td>
	</tr>
	
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>项目联系人：</td>
		<td nowrap colspan="1">
			<input id="contact_psn_cname" name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required maxlength:50"  style="width:130px;" maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />" /> 
		</td>
		<td nowrap align="right"><span class="color_red">*</span>联系电话：</td>
		<td nowrap>
			<input id="contact_psn_tel" name="proposal/contact_psn_tel" label="联系人联系电话" type="text" required class="input_css required maxlength:50"  style="width:130px;" maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />" /> 
		</td>
		<td nowrap align="right"><span class="color_red">*</span>手机：</td>
		<td nowrap>
			<input id="contact_psn_mobile" name="proposal/contact_psn_mobile" label="联系人手机" onfocus="InitInput.setMobile(this)" type="text" required class="input_css required maxlength:13"  style="width:130px;" maxlength="13" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />" /> 
		</td>
	</tr>
    <!-- 
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>项目负责人：</td>
		<td nowrap colspan="1">
			<input id="resp_psn_cname" name="proposal/resp_psn_cname" label="项目负责人" type="text" required class="input_css required maxlength:50"  style="width:130px;" maxlength="50" value="<x:out select="$xmlData/data/proposal/resp_psn_cname" />" /> 
		</td>
		<td nowrap align="right"><span class="color_red">*</span>联系电话：</td>
		<td nowrap>
			<input id="resp_psn_tel" name="proposal/resp_psn_tel" label="项目负责人联系电话" type="text" required class="input_css required maxlength:50"  style="width:130px;" maxlength="50" value="<x:out select="$xmlData/data/proposal/resp_psn_tel" />" /> 
		</td>
		<td nowrap align="right"><span class="color_red">*</span>手机：</td>
		<td nowrap>
			<input id="resp_psn_mobile" name="proposal/resp_psn_mobile" label="项目负责人手机" onfocus="InitInput.setMobile(this)"  type="text" required class="input_css required maxlength:13"  style="width:130px;" maxlength="13" value="<x:out select="$xmlData/data/proposal/resp_psn_mobile" />" /> 
		</td>
	</tr>
    -->
	
	<tr>
	    <td nowrap align="right"><span class="color_red">*</span>项目内容摘要：
	    <br>
	           （限400字）
	    </td>
		<td colspan="5">
			<textarea id="brief" name="proposal/summary" rows=7 cols=100  label="项目内容摘要"  class="textarea required maxlength:400"><x:out select="$xmlData/data/proposal/summary" /></textarea>
		</td>
	</tr>
</table>

<script type="text/javascript">
$(function(){
	$("#impl_area,#register_area").css("float","left");
	$("#subject1,#subject2").css("float","left").focus(function(){
		subjectControl(this);
	});
	$("#basicInfo tr:visible:even").addClass("li_1");
    $("#basicInfo tr:visible:odd").addClass("li_2");
});
</script>